<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Página Principal</title>
</head>
<body>
<%
	if(session.getAttribute("usuario") != null) { 
		out.println("<h3>Olá "+session.getAttribute("usuario")+"</h3>");
 	} else {
 %>
<h3>Formulário de Entrada:</h3>
<form method="post" action="processaForm.jsp">
Nome: <input type="text" name="nome"/><br/>
Telefone: <input type="text" name="telefone"/><br/>
<input type="submit">
</form>
<%  } %>
</body>
</html>